package com.peng.leetcode.heap;

import java.util.PriorityQueue;

/**
 * HeapMain
 *
 * @author: lupeng6
 * @create: 2020/12/25 20:38
 */
public class HeapMain {

    public static void main(String[] args) {
        PriorityQueue<Integer> queue = new PriorityQueue<>();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
        queue.offer(5);
        System.out.println(queue.poll());
    }
}
